package com.mcxx.modules.miniSalvation.salary.dao.write;

import com.mcxx.modules.miniSalvation.salary.entity.MemberSalaryEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface MemberSalaryWriteDao {


	
	int update(MemberSalaryEntity memberSalary);

	
	int insertBachSalary(List<MemberSalaryEntity> newMemberSalarys);

	
	int batchDeleteByIds(List<Map<String, String>> memberSalaryIds);

	
	int insertIgnoreNull(MemberSalaryEntity newMemberSalarys);

	
	int deleteByOrderIdAndSalaryType(String orderId);

	
    int updateEndDate(String orderId, String endDate);

	
	int deleteByCustomFundPayId(List<String> customFundPayIdList);

	
	int updateNowStartAndEndDate(String orderId, String startDate, String nowMonth);

	
	int updateStartDate(String orderId, String startDate);

	
	int updateIgnoreNull(MemberSalaryEntity updateEntity);

	
	int addSalary(MemberSalaryEntity entity);


	
	int deleteMemberSalaryByOrderId(@Param("orderId")String orderId);

	
	int deleteBufaSalaryByOrderId(@Param("orderId")String orderId);

	
	int copySalaryByOrderId(@Param("orderId") String orderId,@Param("newOrderId") String newOrderId, @Param("curMonth") String curMonth);

	
	int batchChangeExpireDate(Map<String, Object> map);

}
